/* 潜在商品验收标准 */
import { commonRequest } from '@/api/commonHttp';

// 潜在商品验收标准 - 列表查询
export const queryStandardListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/potentialStandardDetail/getPager',
  type: 'post',
  data,
  loadingFn
})

// 潜在商品验收标准 - 导出
export const exportStandardListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/potentialStandardDetail/export',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})

// 潜在商品验收标准 - 详情查看
export const queryStandardDetailBySkuNoService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/potentialStandard/getDetails',
  type: 'get',
  data,
  loadingFn,
})

// 潜在商品验收标准 - 单据详情查询
export const queryStandardDetailService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchUpdatePotentialStandard/getRecordInfo',
  type: 'get',
  data,
  loadingFn,
})

// 批量修改潜在商品验收标准 - 关联商品查询
export const queryGoodsListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchUpdatePotentialStandard/getPager',
  type: 'post',
  data,
  loadingFn
})

// 批量修改潜在商品验收标准 - 初始数据列表查询
export const queryStandardListForEditService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchUpdatePotentialStandard/getInitVoList',
  type: 'post',
  data,
  loadingFn
})

// 批量修改潜在商品验收标准 - 提交
export const submitStandardForEditService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchUpdatePotentialStandard/commit',
  type: 'post',
  data,
  loadingFn
})

// 批量修改潜在商品验收标准 - 导出
export const exportStandardEditService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchUpdatePotentialStandard/exportExcel',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})

// 新增验收标准 - 初始列表查询
export const getVerticalInitDataListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/getVerticalInitData',
  type: 'post',
  data,
  loadingFn,
})

// 新增验收标准 - 保存
export const saveVerticalDataService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/saveVerticalData',
  type: 'post',
  data,
  loadingFn,
})

// 新增验收标准 - 导出
export const exportVerticalDataService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/exportVerticalData',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})

// 新增验收标准 - 导入
export const importVerticalDataUrl = 'sysback/product/batchSavePotentialStandard/importVerticalData'

// 批量维护潜在商品验收标准（横版）- 列表查询
export const getHorizontalInitDataService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/getHorizontalInitData',
  type: 'post',
  data,
  loadingFn
})

// 批量维护潜在商品验收标准（横版）- 导出
export const exportHorizontalDataService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/exportHorizontalData',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})

// 批量维护潜在商品验收标准（横版）- 保存
export const saveHorizontalDataService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/saveHorizontalData',
  type: 'post',
  data,
  loadingFn,
})

// 批量维护潜在商品验收标准（横版）- 导入
export const importHorizontalDataUrl = 'sysback/product/batchSavePotentialStandard/importHorizontalData'

// 潜在商品验收标准 - 关联商品查询
export const getSkuInfoWithPermissionService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/getSkuInfoWithPermission',
  type: 'post',
  data,
  loadingFn
})

// 潜在商品验收标准 - 初始数据列表查询-横版
export const getHorizontalInitDataWithPermissionService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/getHorizontalInitDataWithPermission',
  type: 'post',
  data,
  loadingFn
})

// 潜在商品验收标准 - 初始数据列表查询-竖版
export const getVerticalInitDataWithPermissionService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/batchSavePotentialStandard/getVerticalInitDataWithPermission',
  type: 'post',
  data,
  loadingFn
})
